<template scoped>
<div class="margin-top-40">
  <!-- swiper -->
  <mt-swipe :auto="2000">
  <mt-swipe-item v-for="(itm,idx) in swiperData" :key="idx">
    <img :src="itm.img" alt="">
  </mt-swipe-item>
</mt-swipe>
<!-- swiper end -->
<!-- 九宫格start -->
<div class="mui-content">
		        <ul class="mui-table-view mui-grid-view mui-grid-9">
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to='/news/list'>
		                    <span class="mui-icon mui-icon-home"></span>
		                    <div class="mui-media-body">新闻资讯</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/photo">
		                    <span class="mui-icon mui-icon-email"></span>
		                    <div class="mui-media-body">图片分享</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                    <span class="mui-icon mui-icon-chatbubble"></span>
		                    <div class="mui-media-body">商品购买</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                    <span class="mui-icon mui-icon-location"></span>
		                    <div class="mui-media-body">留言反馈</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                    <span class="mui-icon mui-icon-search"></span>
		                    <div class="mui-media-body">视频专区</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                    <span class="mui-icon mui-icon-phone"></span>
		                    <div class="mui-media-body">联系我们</div></a></li>
		        </ul> 
		</div>
    <!-- 九宫格end -->
</div>

</template>
<style scoped>
.mint-swipe{
      height: 200px;  
}
.mint-swipe img{
  height: 100%;
  width: 100%;
}
.mui-table-view{
  background-color: #fff;
}
.mui-icon::before{
  content:'';
  display: block;
  height: 41px;
  width: 41px;
}
.mui-icon-home::before{
  background: url('../../static/images/menu3.png')no-repeat center/cover;
}
.mui-icon-email::before{
  background: url('../../static/images/menu4.png')no-repeat center/cover;
}
.mui-icon-chatbubble::before{
  background: url('../../static/images/menu5.png')no-repeat center/cover;
}
.mui-icon-location::before{
  background: url('../../static/images/menu6.png')no-repeat center/cover;
}
.mui-icon-search::before{
  background: url('../../static/images/menu9.png')no-repeat center/cover;
}
.mui-icon-phone::before{
  background: url('../../static/images/menu10.png')no-repeat center/cover;
}
</style>

<script>
import conmmon from '../../static/common/common.js'
  export default{
    data:()=>{
      return {
        swiperData:[],
      }
    },
    created:function(){
      this.swiperSlider()
    },
    methods:{
      swiperSlider:function(){
        const url = conmmon.baseUrl+'api/getlunbo';
        this.$http.get(url).then(res=>{
          this.swiperData = res.body.message;
        },err=>{
          if(err) console.log(err);
        })
      }
    }
  }
</script>